/**====================================================================================================================
 * Function <code>toggleBackground( , )</code> is used to toggle background color between odd and even rows <br/>
 * while mouse over and mouse out.
 * @author this.author
 * @date 2017-08-11
 * @param x
 * @param y
 * ==================================================================================================================== */
function toggleBackground(x, y) {
  if (y == 0) {
    $('#' + x).css('background-color', 'rgba(0, 0, 255, .15)');
  } else {
	$('#' + x).css('background-color', '#fff');
  }
}

/**==========================================================================================
 * Function <code>openWindow(, , )</code> is used to open a file at the center of screen.
 * @author this.author
 * @date 2017-08-11
 * @param url
 * @param width
 * @param height
 * @returns {___anonymous1042_1044}
 * =========================================================================================== */
function openWindow(url, width, height) {
  var left = (screen.width - width) / 2;
  var top = (screen.height - height) / 2;
  var features = 'left = ' + left + ', top = ' + top + ', width = ' + width + ', height = ' + height + ', center = 1, scrollbars = 0, status = 0, directors = 0, channelmode = 0';
  var win = window.open(url, 'window', features);
  if (!win.opener) {
	win.opener = self;  
  }
  win.focus();
  return win;
}

function closeWindow() {
  if (window.opener) {
	window.opener.location.reload(true);
	window.close();
  }	
}